package extra.switcher;

import java.awt.Dimension;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;


public class ExtraSwitchImageHandler {
	public static boolean ImageHandle(ExtraSwitchData MainData) {
		JFrame jf=new JFrame();
		Image m;
		m=MainData.ProsessInfos.get(3).getFromCaption();//get the image you want
		JLabel lb=new JLabel();
		lb.setIcon(new ImageIcon(m));  //add a label contains the image which have to change to ImageIcon;
		jf.getContentPane().add(lb);  //add the label to our Frame
		
		jf.setSize(new Dimension(400, 300));
	//	jf.setVisible(true); 
		return true;
	}

}


